<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head><title>View current xml files and upload new</title></head>
<body>

<c:out value="${error_msg}"/>
<form action="<c:url value="/uploadxml.html"/>" method="POST" enctype="multipart/form-data">
    <input type="file" name="xmlDocFile">
    <br/>
    <input type="submit" value="upload">
</form>

<br/>
Documents:
<br/>
______________________________________________
<br/>
<c:forEach var="doc" items="${existingDocuments}" >
    <a href="<c:url value="/downloadxml.html"><c:param name="docId" value="${doc.id}"/></c:url>"><c:out value="${doc.name}"/></a>
    <br/>
</c:forEach>

</body>
</html>